package com.jk.smartelderlycare.interfaces;


import com.jk.smartelderlycare.dto.SysPharm;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/7 17:15
 * @Version v1.0
 */
public interface SysPharmServiceApi {
    /**
     * @description: 药品列表后端分页查询
     * @param: [sysPharm, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysPharm>
     * @author hhk
     * @date: 2024/11/7 17:20
     */
    @PostMapping(value = "sysPharm/findSysPharmPaginationList")
    public PagedResponse<SysPharm> findSysPharmPaginationList(@RequestBody SysPharm sysPharm, @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);
   /**
    * @description: 新增药品列表
    * @param: [sysPharm]
    * @return: void
    * @author hhk
    * @date: 2024/11/7 17:21
    */
    @PostMapping(value = "sysPharm/addSysPharm")
    public void addSysPharm(@RequestBody SysPharm sysPharm);
    /**
     * @description: 根据id删除一条数据
     * @param: [pharmId]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 17:22
     */
    @DeleteMapping(value = "sysPharm/deleteSysPharmByPharmId")
    public void deleteSysPharmByPharmId(@RequestParam("pharmId") Long pharmId);
    /**
     * @description: 根据id回显一条数据
     * @param: [pharmId]
     * @return: com.jk.smartelderlycare.dto.SysPharm
     * @author hhk
     * @date: 2024/11/7 17:27
     */
    @GetMapping(value = "sysPhaem/findSysPharmByPharmId")
    public SysPharm findSysPharmByPharmId(@RequestParam("pharmId") Long pharmId);
    /**
     * @description: 修改药品列表
     * @param: [sysPharm]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 17:28
     */
    @PutMapping(value = "sysPhaem/updateSysPharm")
    public void updateSysPharm(@RequestBody SysPharm sysPharm);
    /** 
     * @description: 状态修改
     * @param: [sysPharm]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 17:32
     */ 
    @PutMapping(value = "sysPharm/updateStatusById")
    public void updateStatusById(@RequestBody SysPharm sysPharm);






}


